<template>
  <!-- 头像组件 -->
  <view class="custom-avatar">
    <tm-avatar :size="size" :img="iconInfo.thumbnail"></tm-avatar>
  </view>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
type Props = {
  title?: string
  size?: number
  img?: any
}
const props = defineProps<Props>()
const iconInfo = ref<any>(JSON.parse(props.img))
</script>

<style lang="scss" scoped>
.custom-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12rpx;
  .custom-avatar-title {
    margin-left: 12rpx;
    font-size: 36rpx;
    color: #000;
    font-weight: 600;
  }
}
</style>
